<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <style type="text/css">
            a{color: #0201CB;font-weight: 700;}
        </style>
    </head>
    <body>
    	<a href="?m=Admin&c=Blog&a=add">添加博客</a>
        <br/><br/>
    	<table border='1' width='400' cellspacing="0" cellpadding="10">
    		<tr>
    			<td>bid</td>
    			<td>标题</td>
    			<td>栏目</td>
    			<td>发表时间</td>
    			<td>操作</td>
    		</tr>
    		{hd:section loop=$data name=d}
    		<tr>
    			<td>{hd:$data[d].bid}</td>
    			<td>{hd:$data[d].title}</td>
    			<td>{hd:$data[d].catname}</td>
    			<td>{hd:$data[d].addtime|date_format:'%Y-%m-%d'}</td>
    			<td>
    				<a href="?m=Admin&c=Blog&a=edit&bid={hd:$data[d].bid}">编辑</a>
    				<a href="">删除</a>
    				<a href="?m=Index&c=Index&a=blog&cid={hd:$data[d].cid}&bid={hd:$data[d].bid}" target='_blank'>访问</a>
    			</td>
    		</tr>
    		{hd:/section}
    	</table>
    	<div class='page'>
    		{hd:$page} 
    	</div>
    	<style type='text/css'>
		div.page a,div.page strong{
			display: inline-block;
			padding:3px 6px;
			margin-right:6px;
			border:solid 1px #666;
			color:#333;
		}
		div.page strong{
			background: green;
			color:#fff;
		}
    	</style>
    </body>
</html>